<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BoardGame 3000: IGame.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BoardGame 3000
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A simple board game structure</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">IGame.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#pragma once</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;Board.h&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;Minimax.h&quot;</span>
<a name="l00008"></a>00008 
<a name="l00015"></a><a class="code" href="class_i_game.html">00015</a> <span class="keyword">class </span><a class="code" href="class_i_game.html" title="Base class for games.">IGame</a>
<a name="l00016"></a>00016 {
<a name="l00017"></a>00017 <span class="keyword">public</span>:
<a name="l00021"></a><a class="code" href="class_i_game.html#a20d6d1cc5e972feba895d2dedd2cb40e">00021</a>         <a class="code" href="class_i_game.html#a20d6d1cc5e972feba895d2dedd2cb40e">IGame</a>(){};
<a name="l00022"></a>00022         
<a name="l00026"></a><a class="code" href="class_i_game.html#ab09af95521c3a0ce1a5a806d65370443">00026</a>         <span class="keyword">virtual</span> <a class="code" href="class_i_game.html#ab09af95521c3a0ce1a5a806d65370443">~IGame</a>() {};
<a name="l00027"></a>00027 
<a name="l00032"></a>00032         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#abdc3543ee754cecb7eb156f05ce5869d">start</a>() = 0;
<a name="l00033"></a>00033 
<a name="l00037"></a><a class="code" href="class_i_game.html#a7dde4d727104e457208fc0f492cb5958">00037</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#a7dde4d727104e457208fc0f492cb5958">legal</a>() {};
<a name="l00038"></a>00038 
<a name="l00043"></a><a class="code" href="class_i_game.html#a90e8f12cc54b0f8907c29078a82efc58">00043</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#a90e8f12cc54b0f8907c29078a82efc58">make</a>(<span class="keywordtype">int</span> fromX, <span class="keywordtype">int</span> fromY, <span class="keywordtype">int</span> toX, <span class="keywordtype">int</span> toY) { };
<a name="l00044"></a>00044         
<a name="l00049"></a><a class="code" href="class_i_game.html#a60314a983073a4014639b403229b6c83">00049</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#a60314a983073a4014639b403229b6c83">retract</a>() { };
<a name="l00050"></a>00050 
<a name="l00054"></a><a class="code" href="class_i_game.html#af84c5ff1b9d776381994b349601b1c24">00054</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#af84c5ff1b9d776381994b349601b1c24">display</a>() { };
<a name="l00055"></a>00055 
<a name="l00059"></a><a class="code" href="class_i_game.html#a0931c237dcb52b18d117abcb47363d5f">00059</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#a0931c237dcb52b18d117abcb47363d5f">evaluate</a>() { };
<a name="l00060"></a>00060 
<a name="l00066"></a><a class="code" href="class_i_game.html#ac201277e2d76453b5eb33938eb5ed6a3">00066</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#ac201277e2d76453b5eb33938eb5ed6a3">go</a>(){ };
<a name="l00067"></a>00067 
<a name="l00071"></a><a class="code" href="class_i_game.html#a17cd14cb2249a9178419e7a704053756">00071</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#a17cd14cb2249a9178419e7a704053756">level</a>(std::string <a class="code" href="class_i_game.html#a17cd14cb2249a9178419e7a704053756">level</a>) { };
<a name="l00072"></a>00072         
<a name="l00078"></a><a class="code" href="class_i_game.html#a708979bb871a85d348691ee4a0136ccf">00078</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_i_game.html#a708979bb871a85d348691ee4a0136ccf">debug</a>() { };
<a name="l00079"></a>00079 
<a name="l00083"></a>00083         <span class="keyword">virtual</span> std::string <a class="code" href="class_i_game.html#a43bfc6eee8384673e768016b7082c264">getName</a>() = 0;
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">protected</span>:
<a name="l00086"></a><a class="code" href="class_i_game.html#ab9cc821824521873b06d58227ad5eaa8">00086</a>         <span class="keywordtype">int</span> <a class="code" href="class_i_game.html#ab9cc821824521873b06d58227ad5eaa8" title="Current.">m_level</a>; 
<a name="l00087"></a><a class="code" href="class_i_game.html#a71f086f14c888c7e1aa33bd50071e9f5">00087</a>         <a class="code" href="class_board.html" title="The Board.">Board</a> <a class="code" href="class_i_game.html#a71f086f14c888c7e1aa33bd50071e9f5" title="The Board.">m_board</a>; 
<a name="l00088"></a>00088         <a class="code" href="class_minimax.html">Minimax</a> m_minimax;      
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090 
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 15:22:53 for BoardGame 3000 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
